using System;
using ZhCun.DbCore.Entitys;

namespace MyConsume.Models
{
	public partial class TConsumeItem : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(ColumnName = CNUserId, IsNotNull = true)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				_UserId = value;
				base.SetFieldChanged(CNUserId) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime, IsNotNull = true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(ColumnName = CNAddHost)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				_AddHost = value;
				base.SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(ColumnName = CNLastTime, IsNotNull = true)]
		public System.DateTime LastTime
		{
			get { return _LastTime; }
			set
			{
				_LastTime = value;
				base.SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(ColumnName = CNLastHost)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				_LastHost = value;
				base.SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _ItemName;
		/// <summary>
		/// ItemName
		/// </summary>
		[Entity(ColumnName = CNItemName)]
		public System.String ItemName
		{
			get { return _ItemName; }
			set
			{
				_ItemName = value;
				base.SetFieldChanged(CNItemName) ;
			}
		}

		private System.String _ItemNamePY;
		/// <summary>
		/// ItemNamePY
		/// </summary>
		[Entity(ColumnName = CNItemNamePY)]
		public System.String ItemNamePY
		{
			get { return _ItemNamePY; }
			set
			{
				_ItemNamePY = value;
				base.SetFieldChanged(CNItemNamePY) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNUserId = "UserId";
		public const string CNAddTime = "AddTime";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNItemName = "ItemName";
		public const string CNItemNamePY = "ItemNamePY";
		#endregion

	}
}
